package com.wallet.common.util;

public class PageUtil {

    /**
     * 计算当前页
     * @param offset
     * @param pageSize
     * @return
     */
    public static int getPageNum(int offset, int pageSize){
        return offset % pageSize ==  0 ? offset/pageSize+1: offset/pageSize+2;
    }

}
